﻿@model MealBooking.Core.Models.Dishes.Dish
@{
    ViewBag.HeaderTitle = "Dish Detail";
    Layout = "../Shared/_Layout.cshtml";
}
<!--Navbar-->
<div data-role="navbar" data-iconpos="left">
    <div class="float-left">
        <div data-role="controlgroup" data-type="horizontal" data-inset="true" data-mini="true">
            <a href="@Url.Action("EditDish", new { id = Model.Id })" data-role="button">Edit</a>
            <button data-theme="a">
                Delete</button>
        </div>
    </div>
    @Html.Partial("_FloatRightPartial")
</div>
<!--Navbar End-->
@{
    var dish = Model;
    <ul data-role="listview" data-inset="true" data-mini="true">
        <li data-role="list-divider"></li>
        <li>Name : @dish.Name</li>
        <li>Price : @dish.Price</li>
        @if (dish.Category != null)
        {
            <li><a href="@Url.Action("DishCategoryDetail", new { id = dish.Category.Id })">Category
                :
                @dish.Category.Name</a></li>
        }
        else
        {
            <li>Not Categoried Yet.</li>
        }
        <li>Description : @dish.Description</li>
    </ul>
}
